#include <SDL/sdl.h>
#include <SDL/SDL_image.h>
#include <stdbool.h>


Functions | |
| image * | image_load (char *full_path) |
| void | image_draw (image *p_image, SDL_Surface *p_destination, int x, int y) |
| void | image_draw_part (image *p_image, SDL_Surface *p_destination, int x, int y, int src_x, int src_y, int src_height, int src_width) |
| SDL_Surface * | image_create (int r, int g, int b, int width, int height) |
| Create a surface with the specified color and size. | |
| void | image_free (image *p_image) |
| SDL_Surface* image_create | ( | int | r, | |
| int | g, | |||
| int | b, | |||
| int | width, | |||
| int | height | |||
| ) |
Create a surface with the specified color and size.
| void image_draw | ( | image * | p_image, | |
| SDL_Surface * | p_destination, | |||
| int | x, | |||
| int | y | |||
| ) |
Draw an image
| void image_draw_part | ( | image * | p_image, | |
| SDL_Surface * | p_destination, | |||
| int | x, | |||
| int | y, | |||
| int | src_x, | |||
| int | src_y, | |||
| int | src_height, | |||
| int | src_width | |||
| ) |
Draw a part of an image
| void image_free | ( | image * | p_image | ) |
free memory
| the | image to be freed |
| image* image_load | ( | char * | full_path | ) |
| Full | path of the file to load, support bmp, jpg, png |
1.5.4